var resultValidation = new Vue({

    el: "#resultValidation",

    data: {
        //询价表
        offerTable: [],
        //单个列表信息
        offerTable_show: {},


    },
    //提交时间方法
    methods: {
        //跳转详情信息
        showData:function(offerTable_show){
            debugger
            $("#wrap-left").load("http://" + window.location.host + "/home/memorandInUnitingPring.html", function () {
                purchaseAndOrdersdetailResultVaidation.urchaseAndOrdersdetail = offerTable_show;
            });

        },


        handleEdit: function (rowIndex,row) {
            $("#wrap-left").load("http://" + window.location.host + "/home/memorandInUnitingPring.html", function () {
                purchaseAndOrdersdetailResultVaidation.urchaseAndOrdersdetail = row;
            });
        },
        tableRowClassName:function(row, rowIndex) {
            var _this = this;
            if (rowIndex === 1) {
                return 'warning-row';
            } else if (rowIndex === 3) {
                return 'success-row';
            }
            return '';
        },

    },

    //页面加载后的初始化方法
    created: function () {
        var _this = this;
        //取得所有满足要求的列表
        $.post("/home/purchase_orders/selectMemorandInUniting", "", function (data) {
            if (data.code==200) {
            _this.offerTable = data.data.purchaseOrders;
            if(data.data.message !=null){
                _this.$notify({
                    message: data.data.message,
                    type: 'error'
                });
            }
        }
        });
    }


});


function tableRowClassName(row, rowIndex) {
    var _this = this;
    if (rowIndex === 1) {
        return 'warning-row';
    } else if (rowIndex === 3) {
        return 'success-row';
    }
    return '';
}